package samsung.sds.survey.surveyStatistics.dao;

import java.util.List;

import samsung.sds.survey.surveyStatistics.model.QualitySurveyStatisticsEntity;
import samsung.sds.survey.surveyStatistics.model.QualitySurveyStatisticsResultEntity;
import samsung.sds.survey.surveyStatistics.model.SurveyResultEntity;
import samsung.sds.system.common.baseQuery.BaseMapper;

/**
 * @author dan5.li
 * @createDate 2016-02-15
 * 数字类型问卷调查统计
 */
public interface QualitySurveyStatisticsMapper extends BaseMapper<QualitySurveyStatisticsResultEntity>{
	
	/**
	 * 根据调查ID获取调查问卷信息
	 * @param survey_Id
	 * @return
	 */
	public QualitySurveyStatisticsEntity selectTF_F_SURVEY(String survey_Id);
	
	/**
	 * 根据调查ID获取所有问题列表
	 * @param survey_Id
	 * @return
	 */
	List<QualitySurveyStatisticsResultEntity> selectTF_F_QUESTION(String survey_Id);

	/**
	 * 根据调查问卷ID和用户名查询投票时间
	 * @param surveyId
	 * @param userName
	 * @return
	 */
	QualitySurveyStatisticsResultEntity selectTF_F_SURVEY_RESULT01( String surveyId, String userName );
	
	/**
	 * 获取某用户对某问卷的答案
	 * @param surveyId
	 * @param userName
	 * @return
	 */
	List<SurveyResultEntity> selectTF_F_SURVEY_RESULT02( String surveyId, String userName );
}
